package com.eastfair.questionnaire.service;

import com.eastfair.boot.service.SuperService;
import com.eastfair.questionnaire.dto.AnswerResultDTO;
import com.eastfair.questionnaire.entity.AnswerResult;

import java.util.List;

/**
 * <p>
 * 业务接口
 * 答题结果
 * </p>
 *
 * @author yuwx
 * @date 2021-08-18
 */
public interface AnswerResultService extends SuperService<AnswerResult> {
    /**
     *Description 获取问题下所有答案
     *@Date 13:59 2021/8/25
     *@param projectId
     *@param questionId
     *@param subjectType
     *@param subjectId
     *@return java.util.List<com.eastfair.questionnaire.entity.AnswerResult>
     *@Author yuwx
     **/
    List<AnswerResult> listByQuestion(Long projectId, List<Long> questionIdList, String subjectType, Long subjectId);
    /**
    *Description 获取问题下所有答案
    *@Date 13:59 2021/8/25
    *@param projectId
    *@param questionId
    *@param subjectType
    *@param subjectId
    *@return java.util.List<com.eastfair.questionnaire.entity.AnswerResult>
    *@Author yuwx
    **/
    List<AnswerResult> listByQuestion(Long projectId, Long questionId, String subjectType, Long subjectId);
    /**
    *Description 校验并保存问卷答案
    *@Date 17:05 2021/8/26
    *@param answerResultList
    *@return void
    *@Author yuwx
    **/
    void save(Long projectId, String subjectType, Long subjectId, List<AnswerResultDTO> answerResultList);

}
